setStatusBar

abstract fun setStatusBar(expandable: Boolean): Boolean

Enables or disables the expandability of the notification shade system-wide.

This API call affects the entire device, not just the calling application's context. Setting expandable to true allows the notification shade (status bar) to be swiped down to reveal notifications and quick settings; false prevents this action.

Return

true if the operation was successful, false otherwise

Parameters

expandable

true to allow the notification shade to be swiped down, false to prevent it